<div class="fui-page fui-page-current " ng-if="pagedata.op=='list'">
    <div class="fui-header">
        <div class="fui-header-left">
            <a class="back" ng-click="goback()"></a>
        </div>
        <div class="title">我的维权申请</div>
    </div>
    <div class="fui-content navbar">
        
        <div class="fui-tab fui-tab-warning" id="tab">
            <a ng-repeat="(k,v) in pagedata.status" ng-click="pagedata.params.status=k;tool.get_list('/refund/getlist/status='+k,true)" ng-class="{'active':pagedata.params.status==k}" href="javascript:;">{{v}}</a>
			
        </div>
		<div class="fui-list-group order-item" ng-repeat="item in pagedata.list">
				<div class="fui-cell-group noborder">
					<div class="fui-cell" style="margin-top:0.3rem">
						<div class="fui-cell-info">关联订单号: {{item.ordersn}}</div>
						<div class="fui-cell-remark">
							{{pagedata.status[item.status]}}
						</div>
					</div>
				</div>
				<div class="fui-list-group-title lineblock">
					<span> <i class="icon jinyunicon icon-trade" style="font-size: 0.65rem"></i>申请退款金额：{{item.price}}</span><br>
					<span ><i class="icon jinyunicon icon-clock" style="font-size: 0.65rem"></i> 申请时间：{{date(item.createtime)}}</span>
                </div>
            <div class="fui-list-group-title lineblock opblock">
				<span class="status noremark" style="float:right">
					<div ng-if="item.status == 1" class="btn btn-sm btn-default-o order-delete" href="javascript:" ng-click="access_json('//send/id='+item.id)">退货商品发货</div>
					<div ng-if="item.status == 0" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({id:item.id},'jy_tour/refund/cancel/')">取消退款申请</div>
					
				</span>
            </div>
        </div>
		<div class='infinite-loading' style="display:none" id="loading_show"><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
		<div class="content-empty" ng-show="pagedata.list.length == 0 || !pagedata.list">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">暂时没有退货申请！</p>
		</div>
	</div>
	<div ng-include="sys_html('_footer')"></div>
	<script>
	if(scope.pagedata.op=='list'){
		scope.tool.get_list('/refund/getlist/status='+scope.pagedata.params.status,true);
		scope.scroll_bottom=function(){
			scope.tool.get_list('/refund/getlist/status='+scope.pagedata.params.status);
		}
	}
	</script>
</div>
<style>
    .fui-footer .btn{
        border-radius: 1rem;
        margin-top: .6rem;
        min-width: 4.1rem;
    }
    .fui-footer{
        padding-right: .6rem;
    }
    .fui-footer .btn.btn-default-o {
        border-color: #666;
        color: #666;
    }
    .fui-title.r-group{
        background: #f3f3f3;
        margin: 0;
        padding: .5rem .6rem;
    }
    .fui-cell-group .fui-cell.noborder:before{
        border:0;
    }
.fui-cell-info {align-items: center;display: flex; -webkit-box-align: center;}
</style>
<div class="fui-page fui-page-current" ng-if="pagedata.op=='apply'">
<div class="fui-header">
   
    <div class="title">退款申请</div>
    <div class="fui-header-right">&nbsp;</div>
</div>
<div class='fui-content'>
    <div class="fui-cell-group">
		<div class="fui-cell r-group">
			<div class="fui-cell-label">订单金额</div>
			<div class="fui-cell-info c000">
				￥<input type="text" id="price" class='fui-input' readonly ng-model="pagedata.item.oldprice" />
			</div>
		</div>
		<div class="fui-cell r-group">
			<div class="fui-cell-label">扣费金额</div>
			<div class="fui-cell-info c000">
				￥<input type="text" id="price" class='fui-input' readonly ng-model="pagedata.item.koufee" />
			</div>
		</div>
		<div  class="fui-cell r-group">
			<div class="fui-cell-label">退款金额</div>
			<div class="fui-cell-info c000">
				￥<input type="text" id="price" class='fui-input' readonly ng-model="pagedata.item.price" />
			</div>
		</div>
		<div class="fui-cell">
				<div class="fui-cell-label">退款说明</div>
				<div class="fui-cell-info c000" >
					<input type="text" class='fui-input' placeholder="选填" ng-model="pagedata.item.content"/>
				</div>
		 </div>
		<div class='fui-title r-group'>
		<span class='text-danger'>*提示:您可退款的金额为￥{{pagedata.item.price}}(扣除手续费{{pagedata.item.koufee || '0.00'}})</span>
		</div>

	</div>
	<div class='fui-footer text-right'>
		<a class='btn btn-sm btn-danger-o btn-submit' ng-click="post(pagedata.item,pagedata.op)">提交申请</a>
		<a class="btn btn-sm btn-default-o back" ng-click="goback()">取消</a>
	</div>
</div>
</div>
